package co.com.smart.persistence.entity.dto;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * The persistent class for the smart_sede database table.
 * 
 */
@Entity
@Table(name="smart_estudgrupo")
@NamedQuery(name="SmartEstudianteGrupo.findAll", query="SELECT s FROM SmartEstudianteGrupo s")
public class SmartEstudianteGrupo implements Serializable {
		private static final long serialVersionUID = 1L;

		@Id
		@GeneratedValue(strategy=GenerationType.IDENTITY)
		@Column(name="sm_scestudgrupo")
		private BigDecimal smscestudgrupo;

		@Column(name="sm_cousuario")
		private String smCousuario;

		@Temporal(TemporalType.DATE)
		@Column(name="sm_fhingreso")
		private Date smFhingreso;

		@Temporal(TemporalType.DATE)
		@Column(name="sm_fhmodificacion")
		private Date smFhmodificacion;

		@Temporal(TemporalType.DATE)
		@Column(name="sm_fhretiro")
		private Date smFhretiro;

		
		//bi-directional many-to-one association to SmartGrupo
		@ManyToOne(optional = false, fetch = FetchType.LAZY)
		@JoinColumn(name="sm_scgrupo", referencedColumnName="sm_scgrupo")
		private SmartGrupo smartGrupo;
		
		//bi-directional many-to-one association to SmartPersona
		@ManyToOne(optional = false, fetch = FetchType.LAZY)
		@JoinColumn(name="sm_scestudiante", referencedColumnName="sm_scpersona")
		private SmartPersona smartEstudiante;
		
		
		//bi-directional many-to-one association to SmartMatricula
		@ManyToOne(optional = false, fetch = FetchType.LAZY)
		@JoinColumn(name="sm_scmatricula", referencedColumnName="sm_scmatricula")
		private SmartMatricula smartMatricula;

		
		public SmartEstudianteGrupo() {
		}

		public BigDecimal getSmscestudgrupo() {
			return this.smscestudgrupo;
		}

		public void setSmscestudgrupo(BigDecimal smscestudgrupo) {
			this.smscestudgrupo = smscestudgrupo;
		}


		public String getSmCousuario() {
			return this.smCousuario;
		}

		public void setSmCousuario(String smCousuario) {
			this.smCousuario = smCousuario;
		}


		public Date getSmFhingreso() {
			return this.smFhingreso;
		}

		public void setSmFhingreso(Date smFhingreso) {
			this.smFhingreso = smFhingreso;
		}

		public Date getSmFhmodificacion() {
			return this.smFhmodificacion;
		}

		public void setSmFhmodificacion(Date smFhmodificacion) {
			this.smFhmodificacion = smFhmodificacion;
		}

		public Date getSmFhretiro() {
			return this.smFhretiro;
		}

		public void setSmFhretiro(Date smFhretiro) {
			this.smFhretiro = smFhretiro;
		}

		
		public SmartMatricula getSmartMatricula() {
			return this.smartMatricula;
		}

		public void setSmartMatricula(SmartMatricula smartMatricula) {
			this.smartMatricula = smartMatricula;
		}
		
		
		public SmartGrupo getSmartGrupo() {
			return this.smartGrupo;
		}

		public void setSmartGrupo(SmartGrupo smartGrupo) {
			this.smartGrupo = smartGrupo;
		}
		
		public SmartPersona getSmartPersona() {
			return this.smartEstudiante;
		}

		public void setSmartPersona(SmartPersona smartEstudiante) {
			this.smartEstudiante = smartEstudiante;
		}

							
}
